package com.zzyl.nursing.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Device;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.vo.DeviceDetailVo;
import com.zzyl.nursing.vo.ProductVo;

import java.util.List;
import java.util.Map;

/**
 * deviceService接口
 * 
 * @author ruoyi
 * @date 2025-10-23
 */
public interface IDeviceService extends IService<Device>
{
    /**
     * 查询device
     * 
     * @param id device主键
     * @return device
     */
    public Device selectDeviceById(Long id);

    /**
     * 查询device列表
     * 
     * @param device device
     * @return device集合
     */
    public List<Device> selectDeviceList(Device device);

    /**
     * 新增device
     * 
     * @param device device
     * @return 结果
     */
    public int insertDevice(Device device);

    /**
     * 修改device
     * 
     * @param dto device
     * @return 结果
     */
    public int updateDevice(DeviceDto dto);


    /**
     * 删除device信息
     * 
     * @param dto
     * @return 结果
     */
    public int deleteDeviceById(DeviceDto dto);

    void syncProductList();

    /**
     * 同步产品列表
     * @return
     */
    List<ProductVo> allProduct();

    void register(DeviceDto deviceDto);

    DeviceDetailVo queryDeviceDetail(DeviceDto dto);

    JSONObject queryProductModelInfo(DeviceDto deviceDto);

    Map<String,Object> queryDevicePropertyStatus(String deviceName, String productKey);
}
